<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ios app开发 基本配置 </title>
    <style type="text/css" media="all">
      body {
        margin: 0;
        font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", sans-serif;
        font-size: 14px;
        line-height: 20px;
        color: #777;
        background-color: white;
      }
      .container {
        width: 700px;
        margin-right: auto;
        margin-left: auto;
      }

      .post {
        font-family: Georgia, "Times New Roman", Times, "SimSun", serif;
        position: relative;
        padding: 70px;
        bottom: 0;
        overflow-y: auto;
        font-size: 16px;
        font-weight: normal;
        line-height: 25px;
        color: #515151;
      }

      .post h1{
        font-size: 50px;
        font-weight: 500;
        line-height: 60px;
        margin-bottom: 40px;
        color: inherit;
      }

      .post p {
        margin: 0 0 35px 0;
      }

      .post img {
        border: 1px solid #D9D9D9;
      }

      .post a {
        color: #28A1C5;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="post">
        <h1 class="title">ios app开发 基本配置 </h1>
        <div class="show-content">
          <h2>1 /配置开发版本</h2><p><br></p><div class="image-package"><img src="http://upload-images.jianshu.io/upload_images/453100-c3ef760613e33b7f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" data-original-src="http://upload-images.jianshu.io/upload_images/453100-c3ef760613e33b7f.png?imageMogr2/auto-orient/strip" data-image-slug="c3ef760613e33b7f" data-width="954" data-height="316"><br><div class="image-caption"></div></div><p>即席开发版</p><p>AppStore中的正式版</p><p><br></p><h2>2 / OC的宏转SWIFT</h2><p>//常量=“ObjectC宏<br></p><blockquote><p>letLoadingTip =“加载中...”</p><p>letiOS8：浮= 8.0</p><p>letScreenHeight = UIScreen.mainScreen（）。bounds.size.height</p><p>letPanWidth：CGFloat的的= 100</p></blockquote><p><br></p><h2>3 /日志输出</h2><p>①配置</p><p><br></p><div class="image-package"><img src="http://upload-images.jianshu.io/upload_images/453100-73bc74bf0dfc281e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" data-original-src="http://upload-images.jianshu.io/upload_images/453100-73bc74bf0dfc281e.png?imageMogr2/auto-orient/strip" data-image-slug="73bc74bf0dfc281e" data-width="894" data-height="542"><br><div class="image-caption"></div></div><p>②定义方法</p><blockquote><p>funcFxLog（消息：字符串函数：字符串= __ FUNCTION__）<br></p><p>{</p><p>#ifDEBUG</p><p>打印（“日志：\（消息），\（功能）”）</p><p>＃其他</p><p>＃万一</p><p>}</p><p><br></p></blockquote><p><br></p><p><br></p><blockquote><p>funcisiPhone5（） - &gt;布尔<br></p><p>{</p><p>#ifos（IOS）</p><p>FxLog（“的iOS的”）</p><p>＃其他</p><p>＃万一</p><p>ifScreenHeight == 568 {</p><p>returntrue</p><p>}</p><p>returnfalse</p><p>}</p></blockquote><p><br></p><p><br></p><blockquote><p>＃如果buildAppStore<br></p><p>＃万一</p><p>funcServerAddress（） - &gt;字符串</p><p>{</p><p>varaddress =“HTT号码：//172.16.19.18”</p><p>#ifAppStore</p><p>地址=“HTT号码：//www.uber.com”</p><p>＃万一</p><p>退货地址</p><p>}</p><p>letYLTnURL =“HTT号码：//202.101.25.178：8080 / SIM / gettn”</p><p><br></p></blockquote><p>4/ xcode8 打印无用的东西</p><p><br></p><p><br></p><div class="image-package"><img src="http://upload-images.jianshu.io/upload_images/453100-b226ef0cd7fff1a2?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" data-original-src="http://upload-images.jianshu.io/upload_images/453100-b226ef0cd7fff1a2?imageMogr2/auto-orient/strip" data-image-slug="b226ef0cd7fff1a2" data-width="852" data-height="448"><br><div class="image-caption">On your Environment Variables set &nbsp;OS_ACTIVITY_MODE=disable</div></div><p>OS_ACTIVITY_MODE=disable<br></p>
        </div>
      </div>
    </div>
  </body>
</html>
